<? /* @var $image EntryImage */ ?>
<?
$values=array();
$img=$image->getResizedObject($width, $height, true, true);
if (!empty($img)){
	$values=array(
		"path" => $img->getPublicPath(),
		"name" => $image->getName(),
		"description" => $image->getDescription(),
		"width" => $img->getWidth(),
		"height" => $img->getHeight()
	);
}

echo json_encode($values);
